package com.itheima.stock.api;


import com.itheima.stock.dto.LoginDTO;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.vo.CaptchaVO;
import com.itheima.stock.vo.LoginVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ClassName: UserControllerAPI
 * Package: com.itheima.stock.api
 * Description: 对外暴露用户接口
 *
 * @Author Lee
 * @Create 2024/10/30
 */
@RequestMapping(path = "/api")
public interface UserControllerAPI {
    /*
     *
     * 登录接口
     *
     * @param dto 登录参数
     * @return ResponseResult
     */

    @PostMapping("/login")
    ResponseResult<LoginVO> login(@RequestBody LoginDTO dto);

    /**
     * @return
     */

    @GetMapping(path = "/captcha")
    ResponseResult<CaptchaVO> captcha();


    /**
     * 环境测试接口
     *
     * @return String
     */
    @GetMapping(path = "/user/test")
    String getName();
}
